/*
 * @Author: zxhuan 
 * @Date: 2018-05-03 14:29:38 
 * @Blog:www.zxhuan.com 
 * @Email:1123046380@qq.com 
 * @Last Modified time: 2018-05-03 14:29:38 
 */
/**
 * 表单验证
 */
import i18n from '@/i18n';
export const Rules = {
  phone: { required: true, pattern: 'tell', msg: i18n.t('MOBIEL_ERROR') },
  code: { required: true, pattern: '^\\d{6}$', msg: i18n.t('CODE_ERROR') },
  email: { required: true, pattern: 'email', msg: i18n.t('ERROR_EMAIL') },
  password: { required: true, pattern: '^\\w{6,18}$', msg: i18n.t('PASSLEN') },
  username: { required: true, pattern: 'tell', msg: i18n.t('MOBIEL_ERROR') },
  phoneCodeId: { required: true, pattern: '^\\d{6}$', msg: i18n.t('CODE_ERROR') },
  account: { required: true },
  phoneEmail: { required: true, pattern: '(^[\\w.\\-]+@(?:[a-z0-9]+(?:-[a-z0-9]+)*\\.)+[a-z]{2,3}$)|(^1[3|5|7|8]\\d{9}$)', msg: '请输入正确的手机号或邮箱' },
  address: { required: true },
  realName: { required: true },
  identity: { required: true, pattern: 'identity', msg: i18n.t('IDENTITY_ERROR') },
  startTime: { required: true },
  endTime: { required: true },
  name: { required: true },
  bank: { required: true },
  branch: { required: true },
  bank_num: { required: true },
  buyNum: { required: true },
  buyPass: { required: true },
  sellNum: { required: true },
  payType: { required: true },
  payId: { required: true },
  sellPass: { required: true },
  price: { required: true },
  num: { required: true },
  bankId: { required: true },
  coinType: { required: true },
  premium: { required: true },
  minLimit: { required: true },
  maxLimit: { required: true },
  payWay: { required: true },
  desc: { required: true },
  dealPsw: { required: true },
  fee: { required: true },
  trueNum: { required: true },
  remark: { required: true },
  dealPwd: { required: true }
};